def insertsort(list):
    for i in range(1,len(list)-1):
        j=i-1;
        while (j>=0) and (list[j]>list[j+1]):
            temp=list[j];
            list[j]=list[j+1];
            list[j+1]=temp;
        i+=1;
    return list;

a,b,c=(input("Please input 3 words separated with \", \": ").split(", "));
list=[a,b,c];
insertsort(list);
for word in list:
    print(word, end=", ");